/*
menu_action();
*/
switch (argument0)
{
case "dlgoptions":
    variable_set(dialog_menu_variable,global.menu_option_selected);
    menu_destroy("dlgoptions");
    dialog_nextline = true;
    dialog_temp = -1;
break;
case "test":
    switch (argument1)
    {
        case 0:
            global.scn_next = scn_test1;
            global.alpha_trigger = false;
            global.control = 1;
            menu_destroy("test");
        break;
        case 1:
            //Send to the select save item thing.
        break;
        case 2:
            menu_create("settings",24,48);
            menu_select("settings");
            menu_add_option("settings",0,"Controller");
            menu_add_option("settings",1,"Framerate");
            menu_add_option("settings",2,"Show hints");
            menu_add_option("settings",3,"Dialog speed");
            menu_add_option("settings",4,"Save and go back");
            menu_add_option("settings",5,"Go back");
        break;
        case 3:
            game_end();
        break;
        case 99:
            menu_create("amigawa",24,48);
            menu_select("amigawa");
            menu_add_option("amigawa",0,"Otro menu");
            menu_add_option("amigawa",1,"Menus empotrados!");
        break;
    }
break;
default:
    switch (argument1)
    {
        default:
            menu_destroy(argument0);
        break;
    }
break;
}
